/** 转对象为 URLSearchParams */
export function getURLSearchParams(obj: Object) {
    if (obj) {
        const param = new URLSearchParams();
        Object.entries(obj).forEach(([key, value]) => {
            param.set(key, value);
        });
        return param;
    } else {
        return;
    }
}
